<?php
	$pagina = basename($_SERVER['PHP_SELF']);
	if(($pagina != "index.php") && ($pagina != "detalle_foros.php"))
	{
		echo '<footer>
				<div class="row-fluid">
					<div class="span2 offset5 privacity">Política de privacidad</div>
					<div class="span1 offset3"><a href="logout.php" style="text-decoration: none;"><i class="icon-signout icon-large icon-blue exit" style="margin-bottom:15px"></i><div class="exit-text">Salir</div></a></div>
				</div>      
			</footer>';
	}
	else
	{
		if($pagina == "detalle_foros.php")
		{
			echo '<footer>
					<div class="row-fluid">
						<div class="span2 offset5 privacity">Política de privacidad</div>
						<div class="span1 offset3"><i class="icon-signout icon-large icon-blue exit" onclick="window.close();" style="margin-bottom:15px"></i><div class="exit-text">Cerrar ventana</div></div>
					</div>      
				</footer>';
		}
	}
?>	

    <!-- Javascript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="bootstrap/js/jquery.js"></script>
    <script src="bootstrap/js/bootstrap.js"></script>
	<script src="js/flotr2/flotr2.min.js"></script>
	
<?php
	$url = explode('?',basename($_SERVER['PHP_SELF']));
	if($pagina != "index.php")
	{
		$cadena = "";
		if($pagina != $url[0])
		{
			$cadena = '	<script src="datepicker/js/bootstrap-datepicker.js"></script>
									<script src="bootstrap/js/siai.js"></script>';
			$cadena .= "			
									<script>
										$(document).ready(function() {
											url = 'data/cnae.json';
											loadCmbJson(url,{},'sectorial', true, 'J6100');
											//url = 'data/paises.json';
											//loadCmbJson(url,{},'paises', false, '63');
										});</script>";
		}
									
		
		echo $cadena;
	}
?>

  </body>
</html>